<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,height=device-height, user-scalable=no,initial-scale=1, minimum-scale=1, maximum-scale=1">
    <title>全部商品</title>
    <link rel="stylesheet" href="/store/css/allGoods.css"/>
    <link rel="stylesheet" href="/store/css/Up.css">
    <script type="text/javascript" src="/store/js/jquery-1.12.1.min.js"></script>
    <script type="text/javascript" src="/store/js/xlmenu.js"></script>
   	<script type="text/javascript" src="/store/js/touch.js"></script>
    <script type="text/javascript" src="/store/js/srcolltop.js"></script>
    <script src="/js/plugins/jrender/jrender.min.js"></script>
    <!-- 隐藏菜单 -->
    <script>
        //查询所有的商品
        $.get("/article",function (data) {
            console.log(data);
            $(".allsp").renderValues({list:data},{
                getHref:function (item,value) {
                    var href = $(item).data("href");
                    $(item).attr("href",href+value);
                }
            })
        });
        $(function(){

            var titleName=$(".ycmenu a");
            for(var i =0;i<titleName.length;i++){
                titleName[i].id=i;
                titleName[i].onmouseover=function(){
                    for(var j =0;j<titleName.length;j++){
                        titleName[j].className="";
                    }
                    this.className = "a";
                }
            }

        });
    </script>
</head>
<body>
<div class="body">
    <div class="tour">
        <a href="/mine/profiles.html" class="tour1"><img src="img/back.png" alt="" style="height: 26px;width: 20px"></a>
        <p>全部商品<!--<i class="xlmenu"></i>--></p>
        <!--<a href="shop4.html" class="tour2"><img src="img/u65.png" alt="" style="width: 35px;height: 35px"></a>-->
    </div>
    <!--<div class="ycmenu">
        <ul>
            &lt;!&ndash;商品分类栏&ndash;&gt;
            <li><a href="javascript:;" class="a">全部商品</a></li>
            <li><a href="nydg.html">奶油蛋糕</a></li>
           &lt;!&ndash; <li><a href="nydg.html">奶油蛋糕</a></li>
            <li><a href="nydg.html">奶油蛋糕</a></li>
            <li><a href="nydg.html">奶油蛋糕</a></li>
            <li><a href="nydg.html">奶油蛋糕</a></li>
            <li><a href="nydg.html">奶油蛋糕</a></li>&ndash;&gt;
        </ul>
    </div>-->
    <div class="allsp" >
        <span render-loop="list">
        <figure>
            <a data-href="spxq.html?articleId=" render-key="list.id" render-fun="getHref"><img render-src="list.picUrl" alt="商品" class="xqtp"/></a>
            <!--<a href="spxq.html"><img src="img/u67.png" alt="商品" class="xqtp"/></a>-->
           <!--商品分类-->
            <p render-html="list.articleName"></p>
            <p style="color: brown">商品描述:<i render-html="list.content"></i></p>
            <!--商品信息-->
            <div class="info">
                <em class="sat">￥<i render-html="list.price">46</i></em>
               <!-- <em class="sat">￥<i render-html="price"></i></em>-->
                <a data-href="spxq.html?articleId=" render-key="list.id" render-fun="getHref"><img src="img/u20.png" alt="购物车" style="width: 38px;height: 35px" align="right"/></a>
            </div>
        </figure>
        </span>

        <div style="clear: both"></div>
    </div>
      <div class="xlgd">
            <p>全部商品<a href="javascript:;"><i></i></a></p>
      </div>
    <div class="wx_nav" id="wx_nav">
        <a href="javascript:;" class="nav_index" id="nav_index">首页</a>
        <!--<a href="javascript:;" class="nav_shopcart" id="nav_shopcart">购物车</a>-->
        <a href="myList.html" class="nav_me on" id="nav_me on">订单</a>
    </div>
</div>
<div class="actGotop"><a href="javascript:;" title="返回顶部"></a> <img src="img/fanhui.png" alt=""></div>
<div class="theme-popover-mask"></div>
</body>
</html>